package com.bytezero.stringclass;

import org.junit.Test;

/**
 *
 *
 *
 * @author Bytezero1·zhenglei!    Email:420498246@qq.com
 * create  2021-10-21 21:45
 */
public class StringExer {

        String str = new String("good");
        char[]ch = {'t','e','s','t'};

        public void change(String str,char ch[]){
            str = "test ok";
            ch[0] = 'b';
        }

    public static void main(String[] args) {
        StringExer ex = new StringExer();
        ex.change(ex.str, ex.ch);
        System.out.println(ex.str + "and"); // goodand
        System.out.println(ex.ch);  //best
    }




}
